package com.aegean.MonitorExamSYS.center.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ValidSmallType")
@Scope("prototype")
public class ValidSmallTypeAction extends ActionSupport {
	@Resource
	CenterBusiness business;
	private boolean success;
    private String small_Name;
	

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	@Override
	public String execute() throws Exception {
		success=business.searchSmallType(small_Name);
		return SUCCESS;
	}

	public String getSmall_Name() {
		return small_Name;
	}

	public void setSmall_Name(String small_Name) {
		this.small_Name = small_Name;
	}
    
}
